<?php
    function sendWeibo ($name,$password,$content,$url)  
    { 
		echo 'nimei!<br>';
        $curl = curl_init(); 
        curl_setopt($curl, CURLOPT_URL,$url); 
        curl_setopt($curl, CURLOPT_HEADER, 0); 
		curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
        $data = curl_exec($curl); 
		echo 'data:'.$data.'<br>';
        curl_close($curl); 
		return $data;
    }
	 function file_get_contents_curl($url) {
      $ch = curl_init();
      curl_setopt($ch, CURLOPT_HEADER, 0);
      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); //Set curl to return the data instead of printing it to the browser.
      curl_setopt($ch, CURLOPT_URL, $url);
      $data = curl_exec($ch);
      curl_close($ch);
      return $data;
      }
//使用方式:
$url='https://13660569061:900110@api.weibo.com/2/friendships/friends.json?source=2575049723&uid=1883369085';
print_r(sendWeibo('604267811@qq.com','bin900110','1',$url));
?>